<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h3>标题</h3>
    <a href="https://www.baidu.com">百度</a>
    <div id="app"></div>
    <div id="root"></div>
</body>
<script>
    const app = document.querySelector("#app");// 将id为app的元素赋值给常量app
    const root = document.querySelector("#root");// 将id为root的元素赋值给常量root
	// root.innerText = "<h3>王佳博</h3>";
	// app.innerText = "<a href='http://jd.com'>张艺兴</a>";

	root.innerHTML = "<h3>王佳博</h3>";
	app.innerHTML = "<a href='http://jd.com'>张艺兴</a>";
</script>
</html>